<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <!--工具栏按钮组-->
                        <div class="dropdown btn-group">
                            <ul class="dropdown-menu text-left" role="menu">
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
                                <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
                            </ul>
                        </div>
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover" width="100%">
                        <thead>
                        <tr>
                            <th style="text-align: center; vertical-align: middle; " data-field="amoy_id">
                                <div class="th-inner ">ID</div>
                                <div class="fht-cell"></div>
                            </th>
                            <th style="text-align: center; vertical-align: middle; " data-field="user_id">
                                <div class="th-inner ">模版</div>
                                <div class="fht-cell"></div>
                            </th>
                            <th style="text-align: center; vertical-align: middle; " data-field="type_name">
                                <div class="th-inner ">选项</div>
                                <div class="fht-cell"></div>
                            </th>
                            <th style="text-align: center; vertical-align: middle; " data-field="role">
                                <div class="th-inner ">选项内容</div>
                                <div class="fht-cell"></div>
                            </th>
                            <th style="text-align: center; vertical-align: middle; " data-field="add_time">
                                <div class="th-inner ">是否是兴趣点</div>
                                <div class="fht-cell"></div>
                            </th>
                            <th style="text-align: center; vertical-align: middle; " data-field="operate">
                                <div class="th-inner ">操作</div>
                                <div class="fht-cell"></div>
                            </th>
                        </tr>
                        </thead>
                        <tbody data-listidx="0">
                        {volist name="list" id="val"}
                        <tr data-index="0">
                            <td style="text-align: center; vertical-align: middle; ">
                                {$val['list_id']}
                            </td>
                            <td style="text-align: center; vertical-align: middle; ">
                                {$val['type_name']}
                            </td>
                            <td style="text-align: center; vertical-align: middle; ">
                                {$val['option_name']}
                            </td>
                            <td style="text-align: center; vertical-align: middle; ">
                                {$val['list_name']}
                            </td>
                            <td style="text-align: center; vertical-align: middle; ">
                                {$val['is_interest']==1?'是':'否'}
                            </td>
                            <td style="text-align: center; vertical-align: middle; ">
                                {if condition="$val['is_interest'] eq 1"}
                                <a class="btn btn-xs btn-danger btn_interest" title="取消兴趣点" data-isterest="{$val['is_interest']}" data-id="{$val['list_id']}">
                                    取消兴趣点
                                </a>
                                {else/}
                                <a class="btn btn-xs btn-success btn_interest" title="设为兴趣点" data-isterest="{$val['is_interest']}" data-id="{$val['list_id']}">
                                    设为兴趣点
                                </a>
                                {/if}
                            </td>
                        </tr>
                        {/volist}
                        </tbody>
                    </table>
                </div>
                {$list->render()}
            </div>
        </div>
    </div>
</div>
